<!--
 * @FilePath     : /study_code/layui/10-20.html
 * @Description  : className 自定义组件主容器的样式类名
 * @Date         : 2025-02-20 08:57
 * @Author       : Fang YingGui
 * @LastEditors  : fangyinggui 18715384437@163.com
 * @LastEditTime : 2025-04-09 10:53:46
-->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>documentName</title>
    <link rel="stylesheet" href="/layui/dist/css/layui.css" />
    <style>
      .demo-dropdown-tabs {
        padding: 0 16px;
      }

      .fyg-dpd {
        border: 1px solid red;
      }
    </style>
  </head>
  <body>
    <button class="layui-btn" id="ID-dropdown-demo-content">
      自定义内容
      <i class="layui-icon layui-icon-list layui-font-14"></i>
    </button>

    <script src="/layui/dist/layui.js"></script>
    <!-- <script src="/dropdown/common.js"></script> -->
    <script>
      layui.use(function () {
        var dropdown = layui.dropdown

        // 自定义内容
        dropdown.render({
          elem: '#ID-dropdown-demo-content',

          className: 'fyg-dpd',
          content: '内容'
        })
      })
    </script>
  </body>
</html>
